#pragma once

#include "GBComboBoxEx.h"
// CGameBrowserTopPanel
#include "GMUrlAddressHistory.h"
#include "GameBrowserNavigationBar.h"


class CGameBrowserTopPanel : public CWnd
{
	DECLARE_DYNAMIC(CGameBrowserTopPanel)

	friend class CGBComboBoxEx;

public:
	CGameBrowserTopPanel();
	virtual ~CGameBrowserTopPanel();

public:
	BOOL CreateTopPanel(CWnd *pParent,UINT id);

	CGameBrowserNavigationBar * GetNavigationBar(){return &m_wndNavigateBar;}

private:
	void UpdateHistoryAddress();
	void OnUserInputEnter();

private:

    CGBComboBoxEx m_wndAddress;
	CGMUrlAddressHistory m_addressHistories;
	CBitmapButton	m_wndGoButton;

	CGameBrowserNavigationBar m_wndNavigateBar;

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
     afx_msg void OnSize( UINT, int, int );

	//Assign position from MainFrame
	afx_msg LRESULT OnSizeParent(WPARAM wParam, LPARAM lParam);	
public:
	afx_msg void OnDestroy();
	afx_msg void OnBrowserUrl();
    afx_msg BOOL OnEraseBkgnd(CDC* pDC);

};


